package cn.com.connected.entity;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import cn.com.connected.common.config.ListStringTypeHandler;
import java.util.List;
import java.io.Serializable;
import java.util.Date;

/**
 * 动态评论
 * 
 * @author sms
 * @email sms@live.com
 * @date 2025-04-10 16:15:14
 */
@TableName(value = "dynamic_comment",autoResultMap = true)
@Data
@ApiModel(description = "动态评论")
public class DynamicCommentEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.ASSIGN_UUID)
    @TableField(value = "`id`")
    @ApiModelProperty(value = "")
    private String id;


    @TableField(value = "`dynamic_id`")
    @ApiModelProperty(value = "动态ID")
    private String dynamicId;


    @TableField(value = "`member_id`")
    @ApiModelProperty(value = "会员ID")
    private String memberId;


    @TableField(value = "`content`")
    @ApiModelProperty(value = "动态内容")
    private String content;


    @TableField(value = "`imgs`",typeHandler = ListStringTypeHandler.class)
    @ApiModelProperty(value = "图片,")
    private List<String> imgs;


    @TableField(value = "`videos`",typeHandler = ListStringTypeHandler.class)
    @ApiModelProperty(value = "视频,")
    private List<String> videos;


    @TableField(value = "`target_comment_id`")
    @ApiModelProperty(value = "回复的目标评论ID")
    private String targetCommentId;


    @TableField(value = "`create_time`")
    @ApiModelProperty(value = "创建时间")
    private String createTime;


    @TableField(value = "`state`")
    @ApiModelProperty(value = "记录状态")
    private Integer state;
}